<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:h="http://java.sun.com/jsf/html" 
	xmlns:f="http://java.sun.com/jsf/core" 
	xmlns:p="http://primefaces.prime.com.tr/ui" 
	xmlns:ui="http://java.sun.com/jsf/facelets" 
	xmlns:plcf="http://www.powerlogic.com.br/plcf" 
	xmlns:tr="http://myfaces.apache.org/trinidad" 
	xmlns:trh="http://myfaces.apache.org/trinidad/html">  
	<ui:composition template="/fcls/template/PlcGeralTemplate.xhtml"> 
	
		<ui:define name="plc-acao-pesquisar">
			<plcf:botaoAcao id="botaoPesquisar"
							urlIcone="ico iPesquisar"
							acao="search"
							validaForm="#{plcControleConversacao.pesquisarValida}"
							partialSubmit="#{!partialSubmit}"
							label="jcompany.evt.pesquisar"
							botaoArrayID="PESQUISAR"
							rendered="#{requestScope.exibePesquisarPlc=='S' and requestScope.exibe_jcompany_evt_pesquisar!='N'}"
							blocking="true"	>
					<f:ajax event="action" execute="@form" render="@form" imediate="true" />
					<f:param name="skipValidation" value="false" />
			</plcf:botaoAcao>
		</ui:define>
	
		<ui:define name="plc-corpo-formulario">
		
			<div id="medicaoodometroArg" class="plc-form-basico-topo"> 
				<plcf:tabela tituloChave="medicaoodometro.arg.titulo"> 
					<plcf:linha> 
						<plcf:vinculado
										id="viatura"
										value="#{medicaoodometroArg.viatura}"
										propSelPop="viatura"
										idExibe="S"
										idSomenteLeitura="N"
										autoRecuperacaoClasse="br.mil.eb.pqrmnt7.scc.entity.ViaturaEntity"
										autoRecuperacaoPropriedade="numeroEB"
										idTamanho="20"
										lookupTamanho="30"
										actionSel="viaturasel"
										parametro="evento=y"
										modal="S"
										ajudaChave="ajuda.viatura"
										onkeydown="selecionaPorTecla(event,this);"
										required="true" />
					</plcf:linha> 
				</plcf:tabela> 
			</div>
		
		 
			<div id="plc-corpo-formulario" class="plc-corpo-formulario plc-form-tabular"> 
				<fieldset class="plc-fieldset"> 
					<legend class="plc-fieldset-legend">#{msg['medicaoodometro.titulo']}</legend>  
					<plcf:iteracao var="medicaoodometro" id="medicaoodometro" value="#{medicaoodometroLista.itensPlc}" columnClasses="celulaFormulario" headerClass="celulaFormulario"> 
						<h:column> 
							<h:outputText value="#{rowCounter.index}."/> 
						</h:column>  
						<h:column rendered="#{empty requestScope.visualizaDocumentoPlc}"> 
							<f:facet name="header">
								<plcf:tituloExclusao>Exc.</plcf:tituloExclusao>
							</f:facet>  
							<span class="celulaFormularioCaixaMarcacao">
								<plcf:caixaExclusao id="indExcPlc" value="#{medicaoodometro.indExcPlc}"/>
							</span> 
						</h:column>  
						<h:column> 
							<f:facet name="header">
								<plcf:titulo value="#{msg['label.data']}"/>
							</f:facet>  
							<plcf:data id="data" value="#{medicaoodometro.data}" ajudaChave="ajuda.data"/> 
						</h:column>  
						<h:column> 
							<f:facet name="header">
								<plcf:titulo value="#{msg['label.valor']}"/>
							</f:facet>  
							<plcf:numerico id="valor" value="#{medicaoodometro.valor}" ajudaChave="ajuda.valor" tamanho="10"/> 
						</h:column>  
						<h:column> 
							<f:facet name="header">
								<plcf:titulo value="#{msg['label.descricao']}"/>
							</f:facet>  
							<plcf:texto id="descricao" value="#{medicaoodometro.descricao}" ajudaChave="ajuda.descricao"/> 
						</h:column> 
					</plcf:iteracao> 
				</fieldset> 
			</div> 
		</ui:define> 
	</ui:composition> 
</html>
